Page({
    data: {

    },
    onLoad: function () {
        wx.setNavigationBarTitle({
            title: '题目中心'
        })
        wx.setTabBarItem({
            index: 0,
            text: '首页',
            "iconPath": "image/tab1.png",
            "selectedIconPath": "image/tab1_active.png"
        })
        wx.setTabBarItem({
            index: 1,
            "text": "做题",
            "iconPath": "image/tab2.png",
            "selectedIconPath": "image/tab2_active.png"
        })
        wx.setTabBarItem({
            index: 2,
            "text": "我的",
            "iconPath": "image/tab3.png",
            "selectedIconPath": "image/tab3_active.png"
        })
    },
    goTopicDetails () {
        console.log(123)
        wx.navigateTo({
            url: '../topicDetails/topicDetails',
            fail: function () {
                console.log(123);
            }
        })
    }
})
